import { request } from "../http";
import api from "../base";

// 一级品类以及三级品名
export const GetSecondaryOptionsAsync = () => {
    return request('get', api.baseUrl1 + 'api/Specifications/GetSecondaryOptionsAsync')
}

// 货物信息列表
export const TradeQuotePageList = (data) => {
    return request('get', api.baseUrl1 + 'api/WebApi/GetTradeQuotePageListAsync', data)
}

// 收货地址详细
export const SysDeliveryAddressQuery = () => {
    return request('get', api.baseUrl1 + 'api/WebApi/SysDeliveryAddressQuery')
}

// // 获取单条供应中心
// export const GetSingleTradeQuote = (data) => {
//     return request('get', api.baseUrl1 + 'api/WebApi/GetSingleTradeQuote', data)
// }

// 收货地址分页
export const SysDeliveryAddressPageList = (data) => {
    return request('post', api.baseUrl1 + 'api/WebApi/SysDeliveryAddressPageList', data)
}
// 详情页
export const GetSingleTradeQuote = (data) => {
    return request('get', api.baseUrl1 + 'api/WebApi/GetSingleTradeQuote', data)
}
// 默认地址
export const SysDefaultAddressQuery = (data) => {
    return request('get', api.baseUrl1 + 'api/WebApi/SysDefaultAddressQuery', data)
}